package ua.com.jpy.common.basic.dao;

import org.bson.types.ObjectId;

import ua.com.jpy.entity.IEntity;

/**
 * @author LSD25
 *
 */
public interface IJpyBasicDao {
	
	IEntity getOrCreate(IEntity entity, ObjectId id);
	
	boolean delete(IEntity entityFoDelete, ObjectId id);
	
	boolean update(IEntity entityForUpdate, ObjectId id);
	
}
